<?php 
function sitename(){
  $query = "select sitename from siteconfig where id =1";
  $result = mysql_query($query) or die("查询系统配置出错");
  $row = mysql_fetch_array($result);
  return $row["sitename"];
}
?>
